package com.example.shop.controller;

import com.example.shop.bean.ShoppingBean;
import com.example.shop.mapper.ShoppingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/shopping")
public class ShoppingController {

    @Autowired
    ShoppingMapper shoppingMapper;
    //最终没用
    @RequestMapping("/detail")
    public List<ShoppingBean> shoppingBeanList(Integer uid){
        return shoppingMapper.shoppingSelByOid(uid);
    }

}
